home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
savedg1a
/
frmmain.frm
< prev
next >
Wrap
Text File
|
1999-09-08
|
11KB
|
405 lines
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Begin VB.Form frmMAIN
AutoRedraw = -1 'True
BackColor = &H80000000&
BorderStyle = 1 'Fixed Single
Caption = "Lords of The Realm II: Editor"
ClientHeight = 3375
ClientLeft = 2865
ClientTop = 1215
ClientWidth = 5385
Icon = "frmMAIN.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
ScaleHeight = 3375
ScaleWidth = 5385
StartUpPosition = 2 'CenterScreen
Begin MSComDlg.CommonDialog CommonDialog1
Left = 3000
Top = 2880
_ExtentX = 847
_ExtentY = 847
_Version = 393216
End
Begin VB.CommandButton cmdSAVE
Caption = "&Save"
Height = 375
Left = 3600
TabIndex = 10
ToolTipText = "Save options to game."
Top = 2880
Width = 1695
End
Begin VB.Frame FinanceFrame
Caption = "Finances"
Height = 735
Left = 2760
TabIndex = 11
ToolTipText = "Max Out: 5000000"
Top = 600
Width = 2535
Begin VB.CheckBox CrwnsCheck
BackColor = &H8000000B&
Caption = "Crowns."
ForeColor = &H80000008&
Height = 375
Left = 120
TabIndex = 6
Top = 240
Width = 2295
End
End
Begin VB.Frame RawMaterFrame
BackColor = &H8000000A&
Caption = "Raw Materials"
Height = 1455
Left = 2760
TabIndex = 12
ToolTipText = "Max Out: 50000"
Top = 1320
Width = 2535
Begin VB.CheckBox WoodCheck
BackColor = &H8000000A&
Caption = "Wood."
ForeColor = &H80000007&
Height = 375
Left = 120
TabIndex = 9
Top = 960
Width = 2295
End
Begin VB.CheckBox StneCheck
BackColor = &H8000000B&
Caption = "Stone."
ForeColor = &H80000008&
Height = 375
Left = 120
TabIndex = 8
Top = 600
Width = 2295
End
Begin VB.CheckBox IronCheck
BackColor = &H8000000A&
Caption = "Iron."
ForeColor = &H80000008&
Height = 375
Left = 120
TabIndex = 7
Top = 240
Width = 2295
End
End
Begin VB.Frame WeaponFrame
BackColor = &H8000000A&
Caption = "Weapons"
Height = 2535
Left = 120
TabIndex = 14
ToolTipText = "Max Out: 20000"
Top = 600
Width = 2535
Begin VB.CheckBox MailCheck
BackColor = &H00C0C0C0&
Caption = "Mail."
ForeColor = &H80000008&
Height = 375
Left = 120
TabIndex = 5
Top = 2040
Width = 2295
End
Begin VB.CheckBox BwsdArrCheck
BackColor = &H00C0C0C0&
Caption = "Bows and Arrows."
ForeColor = &H80000008&
Height = 375
Left = 120
TabIndex = 4
Top = 1680
Width = 2295
End
Begin VB.CheckBox PikeCheck
BackColor = &H00C0C0C0&
Caption = "Pikes."
ForeColor = &H80000008&
Height = 375
Left = 120
TabIndex = 3
Top = 1320
Width = 2295
End
Begin VB.CheckBox MaceCheck
BackColor = &H00C0C0C0&
Caption = "Maces."
ForeColor = &H80000008&
Height = 375
Left = 120
TabIndex = 1
Top = 600
Width = 2295
End
Begin VB.CheckBox CrsBowCheck
BackColor = &H8000000B&
Caption = "Crossbows."
ForeColor = &H80000008&
Height = 375
Left = 120
TabIndex = 2
Top = 960
Width = 2295
End
Begin VB.CheckBox SwrdsCheck
BackColor = &H00C0C0C0&
Caption = "Swords."
ForeColor = &H80000008&
Height = 375
Left = 120
TabIndex = 0
Top = 240
Width = 2295
End
End
Begin VB.Line Line5
BorderColor = &H80000009&
X1 = 6000
X2 = 0
Y1 = 480
Y2 = 480
End
Begin VB.Label lblPLAYER
Alignment = 2 'Center
Height = 255
Left = 120
TabIndex = 13
Top = 120
Width = 5055
End
Begin VB.Line Line2
BorderColor = &H80000005&
X1 = 0
X2 = 6720
Y1 = 15
Y2 = 15
End
Begin VB.Line Line1
BorderColor = &H80000003&
BorderStyle = 6 'Inside Solid
BorderWidth = 2
X1 = 0
X2 = 6720
Y1 = 0
Y2 = 0
End
Begin VB.Line Line6
BorderColor = &H8000000C&
BorderStyle = 6 'Inside Solid
BorderWidth = 2
X1 = 0
X2 = 6000
Y1 = 480
Y2 = 480
End
Begin VB.Menu File
Caption = "&File"
Begin VB.Menu opengm
Caption = "&Open"
End
Begin VB.Menu sep
Caption = "-"
End
Begin VB.Menu Exit
Caption = "E&xit"
End
End
Begin VB.Menu help
Caption = "&Help"
Begin VB.Menu about
Caption = "&About"
Begin VB.Menu lotr
Caption = "&Lords of the Realm II: Editor"
End
End
End
End
Attribute VB_Name = "frmMAIN"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdSAVE_Click()
On Error GoTo ErrSave
Dim Position, Number As Long
'Start'
If CrsBowCheck.Value = 1 Then
Number = &H20
Position = 84905
Seek #1, Position
Put #1, Position, Number
End If
If CrsBowCheck.Value = 1 Then
Number = &H4E
Position = 84906
Seek #1, Position
Put #1, Position, Number
End If
'Above, Cross Bows'
If MaceCheck.Value = 1 Then
Number = &H20
Position = 84909
Seek #1, Position
Put #1, Position, Number
End If
If MaceCheck.Value = 1 Then
Number = &H4E
Position = 84910
Seek #1, Position
Put #1, Position, Number
End If
'Above, Maces'
If SwrdsCheck.Value = 1 Then
Number = &H20
Position = 84913
Seek #1, Position
Put #1, Position, Number
End If
If SwrdsCheck.Value = 1 Then
Number = &H4E
Positi